<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>动态详情 - SocialHub</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4263eb;
            --primary-light: #eef0ff;
            --secondary: #36b37e;
            --light-gray: #f8f9fa;
            --dark-gray: #343a40;
            --text-gray: #6c757d;
            --border-color: #e9ecef;
            --danger: #e74c3c;
            --repost-color: #17a2b8;
        }
        
        body {
            background-color: #f3f4f6;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 900px;
        }
        
        /* 头部样式 */
        .site-header {
            background-color: white;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }
        
        .search-container {
            position: relative;
            max-width: 500px;
            width: 100%;
        }
        
        .search-input {
            background-color: var(--light-gray);
            border: none;
            padding: 0.6rem 1rem 0.6rem 2.5rem;
            border-radius: 20px;
            width: 100%;
        }
        
        .search-icon {
            position: absolute;
            left: 0.8rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-gray);
        }
        
        .search-input:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(66, 99, 235, 0.2);
        }
        
        .nav-links .nav-link {
            color: var(--dark-gray);
            font-weight: 500;
            margin-left: 1.5rem;
            transition: color 0.2s;
        }
        
        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--primary);
        }
        
        .avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* 主体内容 */
        .main-content {
            padding: 2rem 0;
        }
        
        /* 面包屑导航 */
        .breadcrumb {
            background-color: transparent;
            padding: 0 0 1rem 0;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-gray);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--dark-gray);
        }
        
        /* 动态卡片样式 */
        .post-card {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        
        /* 转发标识 */
        .repost-indicator {
            padding: 0.75rem 1.5rem;
            background-color: var(--light-gray);
            font-size: 0.9rem;
            color: var(--repost-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .feed-header {
            padding: 1.25rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-info {
            flex-grow: 1;
        }
        
        .user-name {
            font-weight: 600;
            color: var(--dark-gray);
            text-decoration: none;
        }
        
        .user-name:hover {
            color: var(--primary);
        }
        
        .post-time {
            font-size: 0.85rem;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .post-time i {
            font-size: 0.7rem;
        }
        
        .feed-content {
            padding: 0 1.5rem 1.5rem;
        }
        
        .post-text {
            margin-bottom: 1.5rem;
            line-height: 1.8;
            font-size: 1.1rem;
        }
        
        /* 图片布局 */
        .post-images {
            margin-bottom: 1.5rem;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .single-image {
            width: 100%;
            max-height: 600px;
            overflow: hidden;
        }
        
        .single-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .two-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
        }
        
        .image-item {
            position: relative;
            height: 0;
            padding-bottom: 100%;
            overflow: hidden;
        }
        
        .image-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 动态数据统计 */
        .post-stats {
            padding: 0 1.5rem 0.75rem;
            display: flex;
            gap: 2rem;
            font-size: 0.9rem;
            color: var(--text-gray);
            border-bottom: 1px solid var(--border-color);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .stat-item:hover {
            color: var(--primary);
        }
        
        .stat-number {
            font-weight: 500;
        }
        
        /* 动态操作区 */
        .feed-actions {
            padding: 0.75rem 1.5rem;
            display: flex;
            justify-content: space-around;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            justify-content: center;
        }
        
        .action-btn:hover {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--secondary);
        }
        
        .action-btn.reposted {
            color: var(--repost-color);
        }
        
        /* 推荐标签 */
        .feed-tags {
            padding: 0 1.5rem 1.5rem;
        }
        
        .tag {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 20px;
            font-size: 0.85rem;
            text-decoration: none;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s;
        }
        
        .tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 评论区样式 */
        .comments-section {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .comments-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark-gray);
        }
        
        .comments-sort {
            color: var(--primary);
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        /* 评论输入框 */
        .comment-input-section {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .comment-avatar {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-container {
            flex-grow: 1;
        }
        
        .comment-input {
            width: 100%;
            border: 1px solid var(--border-color);
            border-radius: 21px;
            padding: 0.75rem 1.25rem;
            resize: none;
            font-size: 0.95rem;
            line-height: 1.5;
            transition: all 0.2s;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(66, 99, 235, 0.1);
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.75rem;
            gap: 0.75rem;
        }
        
        .cancel-comment {
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.9rem;
            cursor: pointer;
            padding: 0.35rem 1rem;
        }
        
        .post-comment {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 0.35rem 1.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .post-comment:hover {
            background-color: #3655d8;
        }
        
        .post-comment:disabled {
            background-color: #a0b1ff;
            cursor: not-allowed;
        }
        
        /* 评论列表 */
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
        }
        
        .comment-content {
            flex-grow: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        .comment-author {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--dark-gray);
            text-decoration: none;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        .comment-text {
            background-color: var(--light-gray);
            border-radius: 18px;
            padding: 0.75rem 1rem;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }
        
        .comment-actions {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            color: var(--text-gray);
            text-decoration: none;
            transition: color 0.2s;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复样式 */
        .replies {
            margin-top: 1rem;
            margin-left: 2.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-content {
            flex-grow: 1;
        }
        
        .reply-text {
            background-color: var(--light-gray);
            border-radius: 16px;
            padding: 0.6rem 0.9rem;
            margin-bottom: 0.4rem;
            font-size: 0.9rem;
        }
        
        .reply-to {
            color: var(--primary);
            font-weight: 500;
        }
        
        .reply-form {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.75rem;
        }
        
        .reply-input {
            flex-grow: 1;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            transition: all 0.2s;
        }
        
        .reply-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        
        .reply-actions {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        
        .cancel-reply {
            background: none;
            border: none;
            color: var(--text-gray);
            font-size: 0.85rem;
            cursor: pointer;
        }
        
        .post-reply {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 16px;
            padding: 0.3rem 0.9rem;
            font-size: 0.85rem;
            cursor: pointer;
        }
        
        /* 相关推荐 */
        .related-posts {
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .related-title {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--dark-gray);
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .related-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .related-item {
            display: flex;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .related-item:last-child {
            border-bottom: none;
        }
        
        .related-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .related-info {
            flex-grow: 1;
        }
        
        .related-text {
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .related-meta {
            font-size: 0.8rem;
            color: var(--text-gray);
        }
        
        /* 加载更多评论 */
        .load-more-comments {
            text-align: center;
            margin: 1.5rem 0 0 0;
        }
        
        .load-more-btn {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--primary);
            border-radius: 20px;
            padding: 0.4rem 1.25rem;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .load-more-btn:hover {
            background-color: var(--primary-light);
            border-color: var(--primary);
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .search-container {
                max-width: 200px;
            }
            
            .nav-text {
                display: none;
            }
            
            .nav-links .nav-link {
                margin-left: 1rem;
            }
            
            .action-text {
                display: none;
            }
            
            .action-btn {
                gap: 0;
            }
            
            .post-stats {
                gap: 1rem;
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 576px) {
            .search-container {
                display: none;
            }
            
            .main-content {
                padding: 1rem 0;
            }
            
            .feed-header, .feed-content, .feed-actions {
                padding-left: 1rem;
                padding-right: 1rem;
            }
            
            .comments-section, .related-posts {
                padding: 1rem;
            }
            
            .two-images {
                gap: 2px;
            }
            
            .replies {
                margin-left: 1.5rem;
            }
        }
    </style>
</head>
<body>
    <!-- 网站头部 -->
    <header class="site-header py-3">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <a href="#" class="logo">SocialHub</a>
                
                <div class="search-container">
                    <i class="fas fa-search search-icon"></i>
                    <input type="text" class="search-input" placeholder="搜索动态、话题或用户...">
                </div>
                
                <nav class="nav-links d-flex align-items-center">
                    <a href="#" class="nav-link">
                        <i class="fas fa-home me-1"></i>
                        <span class="nav-text">首页</span>
                    </a>
                    <a href="#" class="nav-link active">
                        <i class="fas fa-compass me-1"></i>
                        <span class="nav-text">发现</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-bell me-1"></i>
                        <span class="nav-text">通知</span>
                    </a>
                    <a href="#" class="nav-link">
                        <i class="fas fa-envelope me-1"></i>
                        <span class="nav-text">消息</span>
                    </a>
                    <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="avatar ms-2">
                </nav>
            </div>
        </div>
    </header>
    
    <!-- 主体内容区 -->
    <div class="main-content">
        <div class="container">
            <!-- 面包屑导航 -->
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb">
                    <li class="breadcrumb-item"><a href="#">首页</a></li>
                    <li class="breadcrumb-item"><a href="#">发现</a></li>
                    <li class="breadcrumb-item active" aria-current="page">动态详情</li>
                </ol>
            </nav>
            
            <!-- 动态卡片 -->
            <article class="post-card">
                <!-- 转发标识 -->
                <div class="repost-indicator">
                    <i class="fas fa-retweet"></i>
                    <span><a href="#" class="user-name">旅行爱好者张华</a> 转发了</span>
                </div>
                
                <div class="feed-header">
                    <img src="https://picsum.photos/100/100?random=11" alt="原作者头像" class="avatar">
                    <div class="user-info">
                        <a href="#" class="user-name">美食摄影师陈颖</a>
                        <div class="post-time">
                            昨天 19:45 · 来自 iPhone 
                            <i class="fas fa-globe-americas"></i>
                            <span>公开</span>
                        </div>
                    </div>
                    <button class="btn btn-sm text-gray-500">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
                
                <div class="feed-content">
                    <div class="post-text">
                        今日探店：隐藏在老城区巷子里的一家私房菜馆，老板是位有三十年经验的老师傅，每道菜都透着匠心。这道松鼠鳜鱼外酥里嫩，酸甜汁调配得恰到好处，堪称一绝！
                    </div>
                    
                    <div class="post-images">
                        <div class="single-image">
                            <img src="https://picsum.photos/1200/800?random=20" alt="松鼠鳜鱼美食照片">
                        </div>
                    </div>
                    
                    <!-- 转发者添加的评论 -->
                    <div class="mt-3 p-3 bg-light rounded">
                        <strong>旅行爱好者张华</strong>：这家我也去过！确实名不虚传，尤其是他们家的红烧肉，肥而不腻，入口即化！
                    </div>
                    
                    <div class="feed-tags">
                        <a href="#" class="tag">#美食探店</a>
                        <a href="#" class="tag">#传统菜肴</a>
                        <a href="#" class="tag">#城市美食地图</a>
                        <a href="#" class="tag">#舌尖上的美味</a>
                    </div>
                </div>
                
                <div class="post-stats">
                    <div class="stat-item">
                        <i class="far fa-eye"></i>
                        <span>浏览 <span class="stat-number">5.8k</span></span>
                    </div>
                    <div class="stat-item">
                        <i class="far fa-comment"></i>
                        <span>评论 <span class="stat-number">89</span></span>
                    </div>
                    <div class="stat-item">
                        <i class="fas fa-retweet"></i>
                        <span>转发 <span class="stat-number">42</span></span>
                    </div>
                    <div class="stat-item">
                        <i class="far fa-heart"></i>
                        <span>点赞 <span class="stat-number">567</span></span>
                    </div>
                </div>
                
                <div class="feed-actions">
                    <button class="action-btn like-btn liked">
                        <i class="fas fa-heart"></i>
                        <span class="action-text">点赞</span>
                    </button>
                    <button class="action-btn comment-btn">
                        <i class="far fa-comment"></i>
                        <span class="action-text">评论</span>
                    </button>
                    <button class="action-btn repost-btn reposted">
                        <i class="fas fa-retweet"></i>
                        <span class="action-text">转发</span>
                    </button>
                    <button class="action-btn save-btn saved">
                        <i class="fas fa-bookmark"></i>
                        <span class="action-text">收藏</span>
                    </button>
                    <button class="action-btn share-btn">
                        <i class="fas fa-share"></i>
                        <span class="action-text">分享</span>
                    </button>
                </div>
            </article>
            
            <!-- 评论区 -->
            <section class="comments-section">
                <div class="comments-header">
                    <h3 class="comments-title">全部评论 (89)</h3>
                    <button class="comments-sort">
                        <i class="fas fa-sort"></i>
                        最新评论
                    </button>
                </div>
                
                <!-- 评论输入框 -->
                <div class="comment-input-section">
                    <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar">
                    <div class="comment-input-container">
                        <textarea class="comment-input" rows="3" placeholder="添加评论..."></textarea>
                        <div class="comment-actions">
                            <button class="cancel-comment">取消</button>
                            <button class="post-comment" disabled>发表评论</button>
                        </div>
                    </div>
                </div>
                
                <!-- 评论列表 -->
                <div class="comments-list">
                    <!-- 评论1 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=50" alt="评论用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <a href="#" class="comment-author">美食评论家刘强</a>
                                <span class="comment-time">2小时前</span>
                            </div>
                            <div class="comment-text">
                                这家店我知道，确实是老字号了，老板的手艺是祖传的，尤其擅长做苏帮菜。除了松鼠鳜鱼，他们的响油鳝糊也非常地道，推荐大家试试！
                            </div>
                            <div class="comment-actions">
                                <a href="#" class="comment-action liked">
                                    <i class="fas fa-heart"></i> 42
                                </a>
                                <a href="#" class="comment-action reply-btn">
                                    <i class="far fa-comment"></i> 回复
                                </a>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=11" alt="回复用户头像" class="comment-avatar">
                                    <div class="reply-content">
                                        <div class="comment-header">
                                            <a href="#" class="comment-author">美食摄影师陈颖</a>
                                            <span class="comment-time">1小时前</span>
                                        </div>
                                        <div class="reply-text">
                                            <span class="reply-to">@美食评论家刘强</span> 感谢推荐！确实，老板的响油鳝糊也是招牌之一，下次去一定尝尝。
                                        </div>
                                        <div class="comment-actions">
                                            <a href="#" class="comment-action liked">
                                                <i class="fas fa-heart"></i> 15
                                            </a>
                                            <a href="#" class="comment-action reply-btn">
                                                <i class="far fa-comment"></i> 回复
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复输入框 -->
                                <div class="reply-form" style="display: none;">
                                    <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar" style="width: 36px; height: 36px;">
                                    <input type="text" class="reply-input" placeholder="回复 @美食评论家刘强...">
                                    <div class="reply-actions">
                                        <button class="cancel-reply">取消</button>
                                        <button class="post-reply">回复</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论2 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=51" alt="评论用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <a href="#" class="comment-author">吃货小丸子</a>
                                <span class="comment-time">5小时前</span>
                            </div>
                            <div class="comment-text">
                                看起来好好吃啊！请问具体地址在哪里呀？想去探店，有没有预订电话呢？周末人会不会很多需要排队？
                            </div>
                            <div class="comment-actions">
                                <a href="#" class="comment-action">
                                    <i class="far fa-heart"></i> 28
                                </a>
                                <a href="#" class="comment-action reply-btn">
                                    <i class="far fa-comment"></i> 回复
                                </a>
                            </div>
                            
                            <!-- 回复输入框 -->
                            <div class="reply-form" style="display: none;">
                                <img src="https://picsum.photos/100/100?random=1" alt="当前用户头像" class="comment-avatar" style="width: 36px; height: 36px;">
                                <input type="text" class="reply-input" placeholder="回复 @吃货小丸子...">
                                <div class="reply-actions">
                                    <button class="cancel-reply">取消</button>
                                    <button class="post-reply">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论3 -->
                    <div class="comment-item">
                        <img src="https://picsum.photos/100/100?random=52" alt="评论用户头像" class="comment-avatar">
                        <div class="comment-content">
                            <div class="comment-header">
                                <a href="#" class="comment-author">老城区居民王阿姨</a>
                                <span class="comment-time">昨天 21:30</span>
                            </div>
                            <div class="comment-text">
                                这家店开了有二十多年了，我看着它从一个小摊子变成现在的样子，老板人很实在，用料一直很讲究，价格也公道，附近街坊都很喜欢去。
                            </div>
                            <div class="comment-actions">
                                <a href="#" class="comment-action liked">
                                    <i class="fas fa-heart"></i> 36
                                </a>
                                <a href="#" class="comment-action reply-btn">
                                    <i class="far fa-comment"></i> 回复
                                </a>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="replies">
                                <!-- 回复1 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=53" alt="回复用户头像" class="comment-avatar">
                                    <div class="reply-content">
                                        <div class="comment-header">
                                            <a href="#" class="comment-author">美食爱好者小李</a>
                                            <span class="comment-time">昨天 22:15</span>
                                        </div>
                                        <div class="reply-text">
                                            <span class="reply-to">@老城区居民王阿姨</span> 王阿姨您好，请问这家店周末营业到几点呀？想去尝尝但怕去晚了关门了。
                                        </div>
                                        <div class="comment-actions">
                                            <a href="#" class="comment-action">
                                                <i class="far fa-heart"></i> 5
                                            </a>
                                            <a href="#" class="comment-action reply-btn">
                                                <i class="far fa-comment"></i> 回复
                                            </a>
                                        </div>
                                    </div>
                                </div>
                                
                                <!-- 回复2 -->
                                <div class="reply-item">
                                    <img src="https://picsum.photos/100/100?random=52" alt="回复用户头像" class="comment-avatar">
                                    <div class="reply-content">
                                        <div class="comment-header">
                                            <a href="#" class="comment-author">老城区居民王阿姨</a>
                                            <span class="comment-time">昨天 22:30</span>
                                        </div>
                                        <div class="reply-text">
                                            <span class="reply-to">@美食爱好者小李</span> 周末一般营业到晚上9点，不过最好8点前到，不然有些特色菜可能就卖完了。
                                        </div>
                                        <div class="comment-actions">
                                            <a href="#" class="comment-action liked">
                                                <i class="fas fa-heart"></i> 8
                                            </a>
                                            <a href="#" class="comment-action reply-btn">
                                                <i class="far fa-comment"></i> 回复
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 加载更多评论 -->
                <div class="load-more-comments">
                    <button class="load-more-btn">
                        <i class="fas fa-spinner fa-spin me-2" style="display: none;"></i>
                        加载更多评论
                    </button>
                </div>
            </section>
            
            <!-- 相关推荐 -->
            <section class="related-posts">
                <h3 class="related-title">相关推荐</h3>
                <div class="related-list">
                    <div class="related-item">
                        <img src="https://picsum.photos/200/200?random=60" alt="相关动态图片" class="related-image">
                        <div class="related-info">
                            <div class="related-text">
                                探访城市里的隐藏美食街，这几家小店的味道让人回味无穷
                            </div>
                            <div class="related-meta">
                                美食探险家 · 3天前 · 238赞
                            </div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/200/200?random=61" alt="相关动态图片" class="related-image">
                        <div class="related-info">
                            <div class="related-text">
                                传统苏帮菜的创新做法，老师傅教你在家也能做出餐厅级别的松鼠鳜鱼
                            </div>
                            <div class="related-meta">
                                家常菜大厨 · 1周前 · 542赞
                            </div>
                        </div>
                    </div>
                    
                    <div class="related-item">
                        <img src="https://picsum.photos/200/200?random=62" alt="相关动态图片" class="related-image">
                        <div class="related-info">
                            <div class="related-text">
                                老城区美食地图大公开，这些巷子深处的美味你都吃过吗？
                            </div>
                            <div class="related-meta">
                                城市漫游者 · 2周前 · 1.2k赞
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 评论输入框功能
            const commentInput = document.querySelector('.comment-input');
            const postCommentBtn = document.querySelector('.post-comment');
            const cancelCommentBtn = document.querySelector('.cancel-comment');
            
            // 评论按钮状态控制
            commentInput.addEventListener('input', function() {
                postCommentBtn.disabled = this.value.trim() === '';
            });
            
            // 取消评论
            cancelCommentBtn.addEventListener('click', function() {
                commentInput.value = '';
                postCommentBtn.disabled = true;
            });
            
            // 发表评论
            postCommentBtn.addEventListener('click', function() {
                const commentText = commentInput.value.trim();
                if (commentText) {
                    // 这里只是模拟评论发布，实际应用中会发送到服务器
                    alert('评论发表成功！');
                    commentInput.value = '';
                    postCommentBtn.disabled = true;
                }
            });
            
            // 点赞功能
            document.querySelectorAll('.like-btn, .comment-action.liked, .comment-action:not(.liked):has(i.far.fa-heart)').forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    this.classList.toggle('liked');
                    const icon = this.querySelector('i');
                    
                    if (this.classList.contains('liked')) {
                        if (icon.classList.contains('far')) {
                            icon.classList.remove('far');
                            icon.classList.add('fas');
                        }
                        
                        // 更新点赞数
                        if (this.textContent.includes(' ')) {
                            const countText = this.textContent.trim().split(' ')[1];
                            const count = parseInt(countText) + 1;
                            this.innerHTML = `<i class="${icon.classList}"></i> ${count}`;
                        }
                    } else {
                        if (icon.classList.contains('fas')) {
                            icon.classList.remove('fas');
                            icon.classList.add('far');
                        }
                        
                        // 更新点赞数
                        if (this.textContent.includes(' ')) {
                            const countText = this.textContent.trim().split(' ')[1];
                            const count = parseInt(countText) - 1;
                            this.innerHTML = `<i class="${icon.classList}"></i> ${count}`;
                        }
                    }
                });
            });
            
            // 收藏功能
            document.querySelector('.save-btn').addEventListener('click', function() {
                this.classList.toggle('saved');
                const icon = this.querySelector('i');
                const text = this.querySelector('.action-text');
                
                if (this.classList.contains('saved')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    text.textContent = '已收藏';
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    text.textContent = '收藏';
                }
            });
            
            // 转发功能
            document.querySelector('.repost-btn').addEventListener('click', function() {
                this.classList.toggle('reposted');
                const text = this.querySelector('.action-text');
                
                if (this.classList.contains('reposted')) {
                    text.textContent = '已转发';
                } else {
                    text.textContent = '转发';
                }
            });
            
            // 分享功能
            document.querySelector('.share-btn').addEventListener('click', function() {
                alert('分享功能：可以分享到微信、微博、QQ等平台');
            });
            
            // 回复功能
            document.querySelectorAll('.reply-btn').forEach(btn => {
                btn.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 隐藏所有回复框
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.style.display = 'none';
                    });
                    
                    // 显示当前评论的回复框
                    const commentContent = this.closest('.comment-content, .reply-content');
                    const replyForm = commentContent.querySelector('.reply-form');
                    
                    if (replyForm) {
                        replyForm.style.display = 'flex';
                        replyForm.querySelector('.reply-input').focus();
                    }
                });
            });
            
            // 取消回复
            document.querySelectorAll('.cancel-reply').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.reply-form').style.display = 'none';
                });
            });
            
            // 发表回复
            document.querySelectorAll('.post-reply').forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyForm = this.closest('.reply-form');
                    const replyInput = replyForm.querySelector('.reply-input');
                    const replyText = replyInput.value.trim();
                    
                    if (replyText) {
                        // 这里只是模拟回复发布，实际应用中会发送到服务器
                        alert('回复发表成功！');
                        replyInput.value = '';
                        replyForm.style.display = 'none';
                    }
                });
            });
            
            // 加载更多评论
            document.querySelector('.load-more-btn').addEventListener('click', function() {
                const spinner = this.querySelector('.fa-spinner');
                spinner.style.display = 'inline-block';
                this.disabled = true;
                
                // 模拟加载延迟
                setTimeout(() => {
                    spinner.style.display = 'none';
                    this.disabled = false;
                    alert('已加载全部评论');
                }, 1500);
            });
            
            // 评论排序切换
            document.querySelector('.comments-sort').addEventListener('click', function() {
                const currentText = this.textContent.trim();
                const newText = currentText === '最新评论' ? '最热评论' : '最新评论';
                this.innerHTML = `<i class="fas fa-sort"></i> ${newText}`;
                
                // 这里可以添加实际的排序逻辑
                alert(`评论已切换为${newText}`);
            });
        });
    </script>
</body>
</html>

